<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>使用vue</title>
    <script src="../js/vue.js"></script>
    <style>
        [v-cloak]{
            display: none;
        }
    </style>
</head>
<body>
    <div id="app">
        <p v-cloak>这是vue对象获取的：{{msg}}</p>
        <p v-text="msg">这是vue对象获取的：</p>
        <p v-cloak>{{msg2}}</p>
        <div v-html="msg2">123123</div>
    </div>
</body>
<script>
    let vm = new Vue({
        el: "#app",
        data:{
            msg:"hello world",
            msg2:"<h1>这是标题</h1>"
        }
    })
</script>
</html>